﻿using Microsoft.AspNetCore.Http;
using System;

namespace Step4.Unit2.Services
{
    public class StudentService : IStudentService
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public StudentService(IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor= httpContextAccessor;
        }

        public void Save()
        {
            Console.WriteLine(_httpContextAccessor.HttpContext.Request.Query["userName"].ToString());
        }
    }
}
